package com.kintreda.ieco_server.module.organization.service.impl;

import com.kintreda.ieco_server.bean.org.OrgSetting;
import com.kintreda.ieco_server.core.service.impl.BaseServiceImpl;
import com.kintreda.ieco_server.module.organization.service.IOrgSettingService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Created by IntelliJ IDEA
 * @Project_Name ieco_server
 * @Package com.kintreda.ieco_server.module.organization.service.impl
 * @Author ZhongYao_H
 * @Date 2019/5/25:16:23
 * @Year 2019 Month 05 Day 25
 * @Date_zh 2019 年 五月 星期六
 */

@Service
public class OrgSettingServiceImpl extends BaseServiceImpl<OrgSetting,String> implements IOrgSettingService {
    @Override
    public OrgSetting getByOrgId(String orgId) {
        List<OrgSetting> query = query("from OrgSetting where orgId = ? ", new Object[]{orgId});
        return query.size()>0?query.get(0):null;
    }
}
